package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 知识库对象 knowledge
 * 
 * @author ruoyi
 * @date 2024-09-05
 */
public class Knowledge extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 知识编号 */
    private Long knowledgeId;

    /** 知识分类 */
    @Excel(name = "知识分类")
    private String knowledgeCategory;

    /** 详细内容 */
    @Excel(name = "详细内容")
    private String knowledgeContent;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date knowledgeCreationtime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date knowledgeUpdatetime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String knowledgeCreator;

    public void setKnowledgeId(Long knowledgeId) 
    {
        this.knowledgeId = knowledgeId;
    }

    public Long getKnowledgeId() 
    {
        return knowledgeId;
    }
    public void setKnowledgeCategory(String knowledgeCategory) 
    {
        this.knowledgeCategory = knowledgeCategory;
    }

    public String getKnowledgeCategory() 
    {
        return knowledgeCategory;
    }
    public void setKnowledgeContent(String knowledgeContent) 
    {
        this.knowledgeContent = knowledgeContent;
    }

    public String getKnowledgeContent() 
    {
        return knowledgeContent;
    }
    public void setKnowledgeCreationtime(Date knowledgeCreationtime) 
    {
        this.knowledgeCreationtime = knowledgeCreationtime;
    }

    public Date getKnowledgeCreationtime() 
    {
        return knowledgeCreationtime;
    }
    public void setKnowledgeUpdatetime(Date knowledgeUpdatetime) 
    {
        this.knowledgeUpdatetime = knowledgeUpdatetime;
    }

    public Date getKnowledgeUpdatetime() 
    {
        return knowledgeUpdatetime;
    }
    public void setKnowledgeCreator(String knowledgeCreator) 
    {
        this.knowledgeCreator = knowledgeCreator;
    }

    public String getKnowledgeCreator() 
    {
        return knowledgeCreator;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("knowledgeId", getKnowledgeId())
            .append("knowledgeCategory", getKnowledgeCategory())
            .append("knowledgeContent", getKnowledgeContent())
            .append("knowledgeCreationtime", getKnowledgeCreationtime())
            .append("knowledgeUpdatetime", getKnowledgeUpdatetime())
            .append("knowledgeCreator", getKnowledgeCreator())
            .toString();
    }
}
